﻿
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>
PHP入门篇_学习笔记_慕课网
</title>
<meta http-equiv="X-UA-Compatible" content="IE=edge, chrome=1">
<meta name="renderer" content="webkit">
<meta property="qc:admins" content="77103107776157736375" />
<meta property="wb:webmaster" content="c4f857219bfae3cb" />
<meta http-equiv="Access-Control-Allow-Origin" content="*" />
<meta http-equiv="Cache-Control" content="no-transform " />
<meta http-equiv="Content-Security-Policy" content="script-src 'self' 'unsafe-inline' 'unsafe-eval' *.imooc.com *.mukewang.com *.baidu.com *.sina.com.cn *.bootcss.com">

<meta name="Keywords" content="" />


<meta name="Description" content="轻松学习PHP基础知识，了解PHP中的变量、变量的类型、常量等概念，认识PHP中的运算符，掌握PHP中顺序结构、条件结构、循环结构三种语言结构语句。"/>








<link rel="stylesheet" href="css/moco.min_1.css" type="text/css" />

<script type="text/javascript">

eval(function(p,a,c,k,e,d){e=function(c){return(c<a?"":e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)d[e(c)]=k[c]||e(c);k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1;};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p;}('!4(){3 6=a;3 l=4(){3 b,e=9 y("(^| )"+"c=([^;]*)(;|$)");j(b=h.g.z(e)){k w(b[2])}x{k a}};3 8=4(t){3 f=l();3 7=9 o();7.A(7.d()+B*i*i*r);h.g="c="+t+";s="+7.M()+";N=/;L=O.m";j(t&&t!=f){Q.P.G()}};3 5=9 E();5.H=4(){K(6);6=a;8(0)};5.J=4(){8(1)};6=I(4(){5.n="";8(1)},F);5.n=\'R://p.u.m/p/v/q/D.C?t=\'+9 o().d()}()',54,54,'|||var|function|imgobj|timer|exp|setcookie|new|null|arr|IMCDNS|getTime|reg|_0|cookie|document|60|if|return|getcookie|com|src|Date|static|common|1000|expires||mukewang|img|unescape|else|RegExp|match|setTime|24|png|logo|Image|3000|reload|onload|setTimeout|onerror|clearTimeout|domain|toGMTString|path|imooc|location|window|http'.split('|'),0,{}))

</script>


<script type="text/javascript">

var OP_CONFIG={"module":"course","page":"note","userout":0};
var isLogin = 0;
var is_choice = "";
var seajsTimestamp="v=201705081743";
var _msg_unread = 0; 
var _not_unread = 0; 
var _cart_num = 0;
</script>








<script>
/*学习页通用配置*/
var GC = {
  course: {
    id: 54,
    name: 'PHP入门篇',
    pic: '',
    video_url: ''
  },
  classmates: 20 // 你的同学一页显示数量
};


</script>
<script>

var hasLearn;
    hasLearn = 0;

</script>




<link rel="stylesheet" href="css/2fba5b0e257945b6a940ff3fd1910bf3.css" type="text/css" />
</head>
<body >

<div id="header">
    <div class="page-container" id="nav">
        <div id="logo" class="logo"><a href="/" target="_self" class="hide-text" title="首页">慕课网</a></div>


        <button type="button" class="navbar-toggle visible-xs-block js-show-menu" >
            <i class="icon-menu"></i>
        </button>
        <ul class="nav-item">
                        <li class="set-btn visible-xs-block"><a href="/user/newlogin" target="_self">登录</a> / <a href="/user/newsignup" target="_self">注册</a></li>
                        
            <li>
                <a href="/course/list"  target="_self">课程</a>
            </li>
            <li><a href="http://class.imooc.com" class="program-nav " target="_self">职业路径<i class="icn-new"></i></a></li>
            <li>
                <a href="http://coding.imooc.com" target="_self">实战</a>
            </li>
            <li><a href="/wenda"  target="_self">猿问</a></li>
            <li><a href="/article"  target="_self">手记</a></li>
            
        </ul>
                <div id="login-area">
            <ul class="header-unlogin clearfix">
                <li class="shop-cart" id="shop-cart">
                    <a href="http://order.imooc.com/pay/cart" class="shop-cart-icon" target="_blank">
                        <span class="icon-shopping-cart js-endcart"></span>
                        <span class="shopping_icon js-cart-num" data-ordernum="0"  data-cartnum="0" style='display: none'>0</span>
                        <span>购物车</span>
                    </a>
                    <div class="my-cart" id="js-my-cart"></div>
                </li>
                <li class="header-signin">
                    <a href="#" id="js-signin-btn">登录</a>
                </li>
                <li class="header-signup">
                    <a href="#" id="js-signup-btn">注册</a>
                </li>
            </ul>
        </div>
                <div class='search-warp clearfix' style='min-width: 32px; height: 60px;'>
                            <div class="pa searchTags" >
                                    <a href="http://class.imooc.com/sc/20" target="_blank">前端小白</a>
                                    <a href="http://class.imooc.com/sc/22" target="_blank">PHP入门</a>
                                </div>
            
            <div class="search-area" data-search="top-banner">
                <input class="search-input" data-suggest-trigger="suggest-trigger"      type="text" autocomplete="off">
                <input type='hidden' class='btn_search' data-search-btn="search-btn" />
                <ul class="search-area-result" data-suggest-result="suggest-result">
                </ul>
            </div>
            <div class='showhide-search' data-show='no'><i class='icon-search'></i></div>
        </div>
    </div>
</div>

<div class="bindHintBox js-bindHintBox hide">
    <div class="pr">
        为了账号安全，请及时绑定邮箱和手机<a href="/user/setbindsns" class="ml20 color-red" target="_blank">立即绑定</a>
        <button  class="closeBindHint js-closeBindHint" type="button"></button>
        <div class="arrow"> </div>
    </div>
</div>


<div id="main">


<div class="course-infos">
    <div class="w pr">
        <div class="path">  
            <a href="/course/list">课程</a>
                        <i class="path-split">\</i><a href="/course/list?c=be">后端开发</a>
                                    <i class="path-split">\</i><a href="/course/list?c=php">PHP</a>
                        <i class="path-split">\</i><a href="/learn/54"><span>PHP入门篇</a></span>
        </div>
        <div class="hd clearfix">
            <h2 class="l">PHP入门篇</h2>
                    </div>

        <div class="statics clearfix">
            
                        <div class="moco-btn l learn-btn green-btn red-btn"> 
                <a href="/code/856" class="J-learn-course">开始学习</a>
                <em></em>
                <i class="follow-action js-follow-action"></i>
            </div>
                        
            
                        
            <div class="static-item l">
                <span class="meta">学习人数</span>
                <span class="meta-value js-learn-num"></span>
                            </div>
            <div class="static-item l">
                <span class="meta">难度级别</span>
                <span class="meta-value">初级</span>
                <em></em>
            </div>
            <div class="static-item l">
                <span class="meta">课程时长</span>
                <span class="meta-value"> 5小时57分</span>
                <em></em>
            </div>
            <div class="static-item l score-btn">
                <span class="meta">综合评分</span>
                <span class="meta-value">9.5</span>
                <em></em>
                
                                
                <div class="score-wrap icon-drop_up triangle">
                    <div class="score-box">
                        <a href="/coursescore/54" class="person-num">
                            <span class="person-num l">562人评价</span>
                        </a>
                                                    <a href="/coursescore/54?page=1" class="evaluation-btn r">查看评价</a>
                                                <div class="score-detail-box">
                            <div class="score-static-item">
                                <span class="meta-value">9.7</span>
                                <span class="meta">内容实用</span>
                            </div>
                            <div class="score-static-item">
                                <span class="meta-value">9.5</span>
                                <span class="meta">简洁易懂</span>
                                <em></em>
                            </div>
                            <div class="score-static-item">
                                <span class="meta-value">9.2</span>
                                <span class="meta">逻辑清晰</span>
                                <em></em>
                            </div>
                        </div>
                    </div>
                </div>
                
            </div>
            
        </div>
        <div class="extra">
            <!-- credit -->
            <div class="share-rl-tips share-posi js-share-statue">
                <span class="icon-drop_up share-triangle"></span>
                <span>分享即可 +</span><strong>1积分</strong>
            </div>
            <!-- share -->
            <div class="share-action r bdsharebuttonbox">
                <a href="javascript:;" class="share wx js-share icon-share-weichat" data-cmd="weixin"></a>
                <a href="javascript:;" class="share qq js-share icon-share-qq" data-cmd="qzone"></a>
                <a href="javascript:;" class="share sina js-share icon-share-weibo" data-cmd="tsina"></a>
            </div>
        </div>
    </div>
    <div class="info-bg" id="js-info-bg">
        <div class="cover-img-wrap">
        <img data-src="picture/55af49b800011edd06000338.jpg" alt="" style="display: none" id="js-cover-img">
        </div>
        <div class="cover-mask"></div>
    </div>
    
        
</div>

<div class="course-info-main clearfix w">
    <div class="content-wrap clearfix">
        <div class="content">
            <!-- 课程简介 -->
            <div class="course-brief">
                <p class="auto-wrap">简介：轻松学习PHP基础知识，了解PHP中的变量、变量的类型、常量等概念，认识PHP中的运算符，掌握PHP中顺序结构、条件结构、循环结构三种语言结构语句。</p>
            </div>
            <!-- 课程简介 end -->
            <div class="mod-tab-menu ">
	<ul class="course-menu clearfix">
		<li><a class="ui-tabs-active " id="learnOn"  href="/learn/54"><span>章节</span></a></li>
		<li><a id="commentOn" class="" href="/comment/54"><span>评论</span></a></li>
		<li><a id="qaOn" class="" href="/qa/54/t/1?page=1"><span>问答</span></a></li>
		<li><a id="noteOn" class="active" href="/note/54?sort=last&page=1"><span>笔记</span></a></li>
	    <!--
        <li><a id="wikiOn" class="" href="/wiki/54">WIKI</a></li>
        -->
	</ul>
	
</div><!-- 课程面板 -->

            
<div id="course_note">
  <div class="course-tool-bar clearfix">
      <div class="tool-left l">
        <a href="/note/54?sort=last&page=1" class="sort-item active">最新</a>
        <a href="/note/54?sort=hot&page=1" class="sort-item ">点赞</a>
      </div>

      <div class="tool-right r">
        
                
      </div>
  </div>
<ul id="js-note-container" class="mod-post">

<li id="1727087" class="post-row js-find-txt" courseid="54" noteId="1727087" authorid="5321068">
  <div class="media">
    <a href="/u/5321068/courses" target="_blank"><img src="picture/533e55d10001c34d02000200-40-40.jpg" width="40" height="40"></a>
  </div>
  <div class="bd">
    <div class="tit">
      <a href="/u/5321068/courses" target="_blank">咖啡加盐一生一世的欺骗</a>
    </div>
    <div class="js-notelist-content notelist-content mynote">
      <pre class="autowrap">介绍一下关于wamp的里面的功能</pre>
      <div class="notelist-content-more">
        <a href="javascript:;" class="js-toggle-content">[ 查看全文 ]</a>
      </div>
    </div>
    <div class="clearfix">
      <input class="moco-btn moco-btn-green sava_btn" type="button" value="保存">
    </div>
            <div class="footer clearfix">
      <span title="28分钟前" class="l timeago">时间：28分钟前</span>
      <a href="/video/3518" class="from l">源自：2-2 WAMPServer服务控制面板介绍</a>
      <div class="actions r">
        <textarea style="display:none;">介绍一下关于wamp的里面的功能</textarea>
        <a title="采集" href="javascript:;" class="Jcollect post-action "  data-mid="3518|5321068">
          <i>采集</i>
          <em>0</em>
        </a>
        <a title="赞" href="javascript:;" class="Jpraise post-action "  data-mid="3518">
          <span class="icon-thumb-revert"></span>
          <em>0</em>
        </a> 
      </div>
    </div>
  </div>
</li>
<li id="1727021" class="post-row js-find-txt" courseid="54" noteId="1727021" authorid="5321068">
  <div class="media">
    <a href="/u/5321068/courses" target="_blank"><img src="picture/533e55d10001c34d02000200-40-40.jpg" width="40" height="40"></a>
  </div>
  <div class="bd">
    <div class="tit">
      <a href="/u/5321068/courses" target="_blank">咖啡加盐一生一世的欺骗</a>
    </div>
    <div class="js-notelist-content notelist-content mynote">
      <pre class="autowrap">www.wampserver.com集成环境安装，外国网站</pre>
      <div class="notelist-content-more">
        <a href="javascript:;" class="js-toggle-content">[ 查看全文 ]</a>
      </div>
    </div>
    <div class="clearfix">
      <input class="moco-btn moco-btn-green sava_btn" type="button" value="保存">
    </div>
            <div class="footer clearfix">
      <span title="1小时前" class="l timeago">时间：1小时前</span>
      <a href="/video/3510" class="from l">源自：2-1 WAMPServer集成环境下载和安装</a>
      <div class="actions r">
        <textarea style="display:none;">www.wampserver.com集成环境安装，外国网站</textarea>
        <a title="采集" href="javascript:;" class="Jcollect post-action "  data-mid="3510|5321068">
          <i>采集</i>
          <em>0</em>
        </a>
        <a title="赞" href="javascript:;" class="Jpraise post-action "  data-mid="3510">
          <span class="icon-thumb-revert"></span>
          <em>0</em>
        </a> 
      </div>
    </div>
  </div>
</li>
<li id="1727008" class="post-row js-find-txt" courseid="54" noteId="1727008" authorid="5321068">
  <div class="media">
    <a href="/u/5321068/courses" target="_blank"><img src="picture/533e55d10001c34d02000200-40-40.jpg" width="40" height="40"></a>
  </div>
  <div class="bd">
    <div class="tit">
      <a href="/u/5321068/courses" target="_blank">咖啡加盐一生一世的欺骗</a>
    </div>
    <div class="js-notelist-content notelist-content mynote">
      <pre class="autowrap">每行代码后面都有一个英文半角符分号;</pre>
      <div class="notelist-content-more">
        <a href="javascript:;" class="js-toggle-content">[ 查看全文 ]</a>
      </div>
    </div>
    <div class="clearfix">
      <input class="moco-btn moco-btn-green sava_btn" type="button" value="保存">
    </div>
            <div class="footer clearfix">
      <span title="1小时前" class="l timeago">时间：1小时前</span>
      <a href="/code/861" class="from l">源自：1-6 PHP语句结束符</a>
      <div class="actions r">
        <textarea style="display:none;">每行代码后面都有一个英文半角符分号;</textarea>
        <a title="采集" href="javascript:;" class="Jcollect post-action "  data-mid="861|5321068">
          <i>采集</i>
          <em>0</em>
        </a>
        <a title="赞" href="javascript:;" class="Jpraise post-action "  data-mid="861">
          <span class="icon-thumb-revert"></span>
          <em>0</em>
        </a> 
      </div>
    </div>
  </div>
</li>
<li id="1726848" class="post-row js-find-txt" courseid="54" noteId="1726848" authorid="1090425">
  <div class="media">
    <a href="/u/1090425/courses" target="_blank"><img src="picture/5486b629000133eb01000100-40-40.jpg" width="40" height="40"></a>
  </div>
  <div class="bd">
    <div class="tit">
      <a href="/u/1090425/courses" target="_blank">用户1090425</a>
    </div>
    <div class="js-notelist-content notelist-content mynote">
      <pre class="autowrap">localhost</pre>
      <div class="notelist-content-more">
        <a href="javascript:;" class="js-toggle-content">[ 查看全文 ]</a>
      </div>
    </div>
    <div class="clearfix">
      <input class="moco-btn moco-btn-green sava_btn" type="button" value="保存">
    </div>
            <div class="footer clearfix">
      <span title="8小时前" class="l timeago">时间：8小时前</span>
      <a href="/video/3510" class="from l">源自：2-1 WAMPServer集成环境下载和安装</a>
      <div class="actions r">
        <textarea style="display:none;">localhost</textarea>
        <a title="采集" href="javascript:;" class="Jcollect post-action "  data-mid="3510|1090425">
          <i>采集</i>
          <em>0</em>
        </a>
        <a title="赞" href="javascript:;" class="Jpraise post-action "  data-mid="3510">
          <span class="icon-thumb-revert"></span>
          <em>0</em>
        </a> 
      </div>
    </div>
  </div>
</li>
<li id="1726830" class="post-row js-find-txt" courseid="54" noteId="1726830" authorid="1090425">
  <div class="media">
    <a href="/u/1090425/courses" target="_blank"><img src="picture/5486b629000133eb01000100-40-40.jpg" width="40" height="40"></a>
  </div>
  <div class="bd">
    <div class="tit">
      <a href="/u/1090425/courses" target="_blank">用户1090425</a>
    </div>
    <div class="js-notelist-content notelist-content mynote">
      <pre class="autowrap">www.wampsever.com</pre>
      <div class="notelist-content-more">
        <a href="javascript:;" class="js-toggle-content">[ 查看全文 ]</a>
      </div>
    </div>
    <div class="clearfix">
      <input class="moco-btn moco-btn-green sava_btn" type="button" value="保存">
    </div>
            <div class="footer clearfix">
      <span title="10小时前" class="l timeago">时间：10小时前</span>
      <a href="/video/3510" class="from l">源自：2-1 WAMPServer集成环境下载和安装</a>
      <div class="actions r">
        <textarea style="display:none;">www.wampsever.com</textarea>
        <a title="采集" href="javascript:;" class="Jcollect post-action "  data-mid="3510|1090425">
          <i>采集</i>
          <em>0</em>
        </a>
        <a title="赞" href="javascript:;" class="Jpraise post-action "  data-mid="3510">
          <span class="icon-thumb-revert"></span>
          <em>0</em>
        </a> 
      </div>
    </div>
  </div>
</li>
<li id="1726626" class="post-row js-find-txt" courseid="54" noteId="1726626" authorid="5314743">
  <div class="media">
    <a href="/u/5314743/courses" target="_blank"><img src="picture/533e4c3300019caf02000200-40-40.jpg" width="40" height="40"></a>
  </div>
  <div class="bd">
    <div class="tit">
      <a href="/u/5314743/courses" target="_blank">慕沐5236579</a>
    </div>
    <div class="js-notelist-content notelist-content mynote">
      <pre class="autowrap"> date_default_timezone_set('Asia/ShangHai');
    $today = date('m-d',time());//获取当天日期</pre>
      <div class="notelist-content-more">
        <a href="javascript:;" class="js-toggle-content">[ 查看全文 ]</a>
      </div>
    </div>
    <div class="clearfix">
      <input class="moco-btn moco-btn-green sava_btn" type="button" value="保存">
    </div>
            <div class="footer clearfix">
      <span title="13小时前" class="l timeago">时间：13小时前</span>
      <a href="/code/955" class="from l">源自：6-2 PHP条件结构之if…else…</a>
      <div class="actions r">
        <textarea style="display:none;"> date_default_timezone_set('Asia/ShangHai');
    $today = date('m-d',time());//获取当天日期</textarea>
        <a title="采集" href="javascript:;" class="Jcollect post-action "  data-mid="955|5314743">
          <i>采集</i>
          <em>0</em>
        </a>
        <a title="赞" href="javascript:;" class="Jpraise post-action "  data-mid="955">
          <span class="icon-thumb-revert"></span>
          <em>0</em>
        </a> 
      </div>
    </div>
  </div>
</li>
<li id="1726577" class="post-row js-find-txt" courseid="54" noteId="1726577" authorid="5314743">
  <div class="media">
    <a href="/u/5314743/courses" target="_blank"><img src="picture/533e4c3300019caf02000200-40-40.jpg" width="40" height="40"></a>
  </div>
  <div class="bd">
    <div class="tit">
      <a href="/u/5314743/courses" target="_blank">慕沐5236579</a>
    </div>
    <div class="js-notelist-content notelist-content mynote">
      <pre class="autowrap">三目运算符，又称为三元运算符。

语法：条件 ? 结果1 : 结果2 

？前面是条件，如果条件为真，那么返回结果1，否则返回结果2。

这里定义的变量$row存储的值是列数。这里如果$no%$maxLine成立（%是取模的意思，即求余数。），如果成立，返回no%$maxLine，否则返回$maxLine。

即学生编号除以每排人数有余数，返回余数，否则返回每排人数。

为什么要这样捏？假如学生编号16，16除以4是没有余数，那么是不是就是在第4列（跟每排人数刚好一样）。

需要知道的一点，取模运算中，如果被模数不够取模，是直接返回被模数。如：3%4，返回的是3。</pre>
      <div class="notelist-content-more">
        <a href="javascript:;" class="js-toggle-content">[ 查看全文 ]</a>
      </div>
    </div>
    <div class="clearfix">
      <input class="moco-btn moco-btn-green sava_btn" type="button" value="保存">
    </div>
            <div class="footer clearfix">
      <span title="13小时前" class="l timeago">时间：13小时前</span>
      <a href="/code/879" class="from l">源自：5-9 PHP中的算术运算符（2）</a>
      <div class="actions r">
        <textarea style="display:none;">三目运算符，又称为三元运算符。

语法：条件 ? 结果1 : 结果2 

？前面是条件，如果条件为真，那么返回结果1，否则返回结果2。

这里定义的变量$row存储的值是列数。这里如果$no%$maxLine成立（%是取模的意思，即求余数。），如果成立，返回no%$maxLine，否则返回$maxLine。

即学生编号除以每排人数有余数，返回余数，否则返回每排人数。

为什么要这样捏？假如学生编号16，16除以4是没有余数，那么是不是就是在第4列（跟每排人数刚好一样）。

需要知道的一点，取模运算中，如果被模数不够取模，是直接返回被模数。如：3%4，返回的是3。</textarea>
        <a title="采集" href="javascript:;" class="Jcollect post-action "  data-mid="879|5314743">
          <i>采集</i>
          <em>0</em>
        </a>
        <a title="赞" href="javascript:;" class="Jpraise post-action "  data-mid="879">
          <span class="icon-thumb-revert"></span>
          <em>0</em>
        </a> 
      </div>
    </div>
  </div>
</li>
<li id="1726469" class="post-row js-find-txt" courseid="54" noteId="1726469" authorid="3103052">
  <div class="media">
    <a href="/u/3103052/courses" target="_blank"><img src="picture/unknow-40.png" width="40" height="40"></a>
  </div>
  <div class="bd">
    <div class="tit">
      <a href="/u/3103052/courses" target="_blank">_189</a>
    </div>
    <div class="js-notelist-content notelist-content mynote">
      <pre class="autowrap">双引号遇上美元，显示的是字符串所代表的内容</pre>
      <div class="notelist-content-more">
        <a href="javascript:;" class="js-toggle-content">[ 查看全文 ]</a>
      </div>
    </div>
    <div class="clearfix">
      <input class="moco-btn moco-btn-green sava_btn" type="button" value="保存">
    </div>
            <div class="footer clearfix">
      <span title="14小时前" class="l timeago">时间：14小时前</span>
      <a href="/code/750" class="from l">源自：3-11 PHP标量类型—字符串（3）</a>
      <div class="actions r">
        <textarea style="display:none;">双引号遇上美元，显示的是字符串所代表的内容</textarea>
        <a title="采集" href="javascript:;" class="Jcollect post-action "  data-mid="750|3103052">
          <i>采集</i>
          <em>0</em>
        </a>
        <a title="赞" href="javascript:;" class="Jpraise post-action "  data-mid="750">
          <span class="icon-thumb-revert"></span>
          <em>0</em>
        </a> 
      </div>
    </div>
  </div>
</li>
<li id="1726467" class="post-row js-find-txt" courseid="54" noteId="1726467" authorid="5317764">
  <div class="media">
    <a href="/u/5317764/courses" target="_blank"><img src="picture/591952f50001e8c106400640-40-40.jpg" width="40" height="40"></a>
  </div>
  <div class="bd">
    <div class="tit">
      <a href="/u/5317764/courses" target="_blank">nurgvl</a>
    </div>
    <div class="js-notelist-content notelist-content mynote">
      <pre class="autowrap">$ 表示是定义变量 比如：&lt;?php
$var =&quot;大家来学PHP&quot;;
echo $var;
?&gt;</pre>
      <div class="notelist-content-more">
        <a href="javascript:;" class="js-toggle-content">[ 查看全文 ]</a>
      </div>
    </div>
    <div class="clearfix">
      <input class="moco-btn moco-btn-green sava_btn" type="button" value="保存">
    </div>
            <div class="footer clearfix">
      <span title="14小时前" class="l timeago">时间：14小时前</span>
      <a href="/code/756" class="from l">源自：3-1 PHP-什么是变量</a>
      <div class="actions r">
        <textarea style="display:none;">$ 表示是定义变量 比如：&lt;?php
$var =&quot;大家来学PHP&quot;;
echo $var;
?&gt;</textarea>
        <a title="采集" href="javascript:;" class="Jcollect post-action "  data-mid="756|5317764">
          <i>采集</i>
          <em>0</em>
        </a>
        <a title="赞" href="javascript:;" class="Jpraise post-action "  data-mid="756">
          <span class="icon-thumb-revert"></span>
          <em>0</em>
        </a> 
      </div>
    </div>
  </div>
</li>
<li id="1726367" class="post-row js-find-txt" courseid="54" noteId="1726367" authorid="5243276">
  <div class="media">
    <a href="/u/5243276/courses" target="_blank"><img src="picture/5458475800015cb202200220-40-40.jpg" width="40" height="40"></a>
  </div>
  <div class="bd">
    <div class="tit">
      <a href="/u/5243276/courses" target="_blank">慕慕2244925</a>
    </div>
    <div class="js-notelist-content notelist-content mynote">
      <pre class="autowrap">unset($var3);//释放$var3</pre>
      <div class="notelist-content-more">
        <a href="javascript:;" class="js-toggle-content">[ 查看全文 ]</a>
      </div>
    </div>
    <div class="clearfix">
      <input class="moco-btn moco-btn-green sava_btn" type="button" value="保存">
    </div>
            <div class="footer clearfix">
      <span title="15小时前" class="l timeago">时间：15小时前</span>
      <a href="/code/755" class="from l">源自：3-14 PHP第二种特殊类型—空类型</a>
      <div class="actions r">
        <textarea style="display:none;">unset($var3);//释放$var3</textarea>
        <a title="采集" href="javascript:;" class="Jcollect post-action "  data-mid="755|5243276">
          <i>采集</i>
          <em>0</em>
        </a>
        <a title="赞" href="javascript:;" class="Jpraise post-action "  data-mid="755">
          <span class="icon-thumb-revert"></span>
          <em>0</em>
        </a> 
      </div>
    </div>
  </div>
</li>
<li id="1726362" class="post-row js-find-txt" courseid="54" noteId="1726362" authorid="5243276">
  <div class="media">
    <a href="/u/5243276/courses" target="_blank"><img src="picture/5458475800015cb202200220-40-40.jpg" width="40" height="40"></a>
  </div>
  <div class="bd">
    <div class="tit">
      <a href="/u/5243276/courses" target="_blank">慕慕2244925</a>
    </div>
    <div class="js-notelist-content notelist-content mynote">
      <pre class="autowrap">当被赋值为NULL，或者尚未被赋值，或者被unset()，这三种情况下变量被认为为NULL</pre>
      <div class="notelist-content-more">
        <a href="javascript:;" class="js-toggle-content">[ 查看全文 ]</a>
      </div>
    </div>
    <div class="clearfix">
      <input class="moco-btn moco-btn-green sava_btn" type="button" value="保存">
    </div>
            <div class="footer clearfix">
      <span title="15小时前" class="l timeago">时间：15小时前</span>
      <a href="/code/755" class="from l">源自：3-14 PHP第二种特殊类型—空类型</a>
      <div class="actions r">
        <textarea style="display:none;">当被赋值为NULL，或者尚未被赋值，或者被unset()，这三种情况下变量被认为为NULL</textarea>
        <a title="采集" href="javascript:;" class="Jcollect post-action "  data-mid="755|5243276">
          <i>采集</i>
          <em>0</em>
        </a>
        <a title="赞" href="javascript:;" class="Jpraise post-action "  data-mid="755">
          <span class="icon-thumb-revert"></span>
          <em>0</em>
        </a> 
      </div>
    </div>
  </div>
</li>
<li id="1726355" class="post-row js-find-txt" courseid="54" noteId="1726355" authorid="5243276">
  <div class="media">
    <a href="/u/5243276/courses" target="_blank"><img src="picture/5458475800015cb202200220-40-40.jpg" width="40" height="40"></a>
  </div>
  <div class="bd">
    <div class="tit">
      <a href="/u/5243276/courses" target="_blank">慕慕2244925</a>
    </div>
    <div class="js-notelist-content notelist-content mynote">
      <pre class="autowrap">一个打开文件的命令
&lt;?php
$file=fopen(&quot;f.txt&quot;,&quot;r&quot;);//打开文件
$con=mysql_connect(&quot;localhost&quot;,&quot;root&quot;,&quot;root&quot;);
//连接数据库
$img=imagecreate(100,100);//图形画布
?&gt;</pre>
      <div class="notelist-content-more">
        <a href="javascript:;" class="js-toggle-content">[ 查看全文 ]</a>
      </div>
    </div>
    <div class="clearfix">
      <input class="moco-btn moco-btn-green sava_btn" type="button" value="保存">
    </div>
            <div class="footer clearfix">
      <span title="15小时前" class="l timeago">时间：15小时前</span>
      <a href="/code/754" class="from l">源自：3-13 PHP第一种特殊类型—资源</a>
      <div class="actions r">
        <textarea style="display:none;">一个打开文件的命令
&lt;?php
$file=fopen(&quot;f.txt&quot;,&quot;r&quot;);//打开文件
$con=mysql_connect(&quot;localhost&quot;,&quot;root&quot;,&quot;root&quot;);
//连接数据库
$img=imagecreate(100,100);//图形画布
?&gt;</textarea>
        <a title="采集" href="javascript:;" class="Jcollect post-action "  data-mid="754|5243276">
          <i>采集</i>
          <em>0</em>
        </a>
        <a title="赞" href="javascript:;" class="Jpraise post-action "  data-mid="754">
          <span class="icon-thumb-revert"></span>
          <em>0</em>
        </a> 
      </div>
    </div>
  </div>
</li>
<li id="1726314" class="post-row js-find-txt" courseid="54" noteId="1726314" authorid="1092902">
  <div class="media">
    <a href="/u/1092902/courses" target="_blank"><img src="picture/5487bfcb0001a9a001000100-40-40.jpg" width="40" height="40"></a>
  </div>
  <div class="bd">
    <div class="tit">
      <a href="/u/1092902/courses" target="_blank">斯蒂夫</a>
    </div>
    <div class="js-notelist-content notelist-content mynote">
      <pre class="autowrap">PHP可以做什么？
1、运行在服务器端：学会了PHP，就可以指挥服务器给你干活，甚至是搞破坏^_^（千万不能真这么做咯），WEB网站的大部分数据都是存储在服务器端的，PHP就是用来处理这些存储在服务器的数据的（功能强大吧）。
2、跨平台：服务器可以是多种平台的服务器，比如Linux、Windows、Unix，你都可以指挥（不用怕只能指挥一种服务器啦吧）。
3、脚本语言：它是通过编写脚本，也就是一行行的计算机指令（也可以理解为特定的英文单词），来指挥服务器来工作的，因此，在编写PHP的过程其实就是与老外（服务器成老外啦）交流的过程，交流的语言就是PHP。
3、脚本语言：它是通过编写脚本，也就是一行行的计算机指令（也可以理解为特定的英文单词），来指挥服务器来工作的，因此，在编写PHP的过程其实就是与老外（服务器成老外啦）交流的过程，交流的语言就是PHP。
4、免费：免费使用（天下还真有免费的午餐）。</pre>
      <div class="notelist-content-more">
        <a href="javascript:;" class="js-toggle-content">[ 查看全文 ]</a>
      </div>
    </div>
    <div class="clearfix">
      <input class="moco-btn moco-btn-green sava_btn" type="button" value="保存">
    </div>
            <div class="footer clearfix">
      <span title="15小时前" class="l timeago">时间：15小时前</span>
      <a href="/code/856" class="from l">源自：1-1 PHP可以做什么？</a>
      <div class="actions r">
        <textarea style="display:none;">PHP可以做什么？
1、运行在服务器端：学会了PHP，就可以指挥服务器给你干活，甚至是搞破坏^_^（千万不能真这么做咯），WEB网站的大部分数据都是存储在服务器端的，PHP就是用来处理这些存储在服务器的数据的（功能强大吧）。
2、跨平台：服务器可以是多种平台的服务器，比如Linux、Windows、Unix，你都可以指挥（不用怕只能指挥一种服务器啦吧）。
3、脚本语言：它是通过编写脚本，也就是一行行的计算机指令（也可以理解为特定的英文单词），来指挥服务器来工作的，因此，在编写PHP的过程其实就是与老外（服务器成老外啦）交流的过程，交流的语言就是PHP。
3、脚本语言：它是通过编写脚本，也就是一行行的计算机指令（也可以理解为特定的英文单词），来指挥服务器来工作的，因此，在编写PHP的过程其实就是与老外（服务器成老外啦）交流的过程，交流的语言就是PHP。
4、免费：免费使用（天下还真有免费的午餐）。</textarea>
        <a title="采集" href="javascript:;" class="Jcollect post-action "  data-mid="856|1092902">
          <i>采集</i>
          <em>0</em>
        </a>
        <a title="赞" href="javascript:;" class="Jpraise post-action "  data-mid="856">
          <span class="icon-thumb-revert"></span>
          <em>0</em>
        </a> 
      </div>
    </div>
  </div>
</li>
<li id="1726111" class="post-row js-find-txt" courseid="54" noteId="1726111" authorid="5207265">
  <div class="media">
    <a href="/u/5207265/courses" target="_blank"><img src="picture/54584cd10001404b02200220-40-40.jpg" width="40" height="40"></a>
  </div>
  <div class="bd">
    <div class="tit">
      <a href="/u/5207265/courses" target="_blank">慕设计0447808</a>
    </div>
    <div class="js-notelist-content notelist-content mynote">
      <pre class="autowrap">else if()括号和if不能邮空格</pre>
      <div class="notelist-content-more">
        <a href="javascript:;" class="js-toggle-content">[ 查看全文 ]</a>
      </div>
    </div>
    <div class="clearfix">
      <input class="moco-btn moco-btn-green sava_btn" type="button" value="保存">
    </div>
            <div class="footer clearfix">
      <span title="18小时前" class="l timeago">时间：18小时前</span>
      <a href="/code/971" class="from l">源自：6-14 PHP中结构嵌套之条件嵌套</a>
      <div class="actions r">
        <textarea style="display:none;">else if()括号和if不能邮空格</textarea>
        <a title="采集" href="javascript:;" class="Jcollect post-action "  data-mid="971|5207265">
          <i>采集</i>
          <em>0</em>
        </a>
        <a title="赞" href="javascript:;" class="Jpraise post-action "  data-mid="971">
          <span class="icon-thumb-revert"></span>
          <em>0</em>
        </a> 
      </div>
    </div>
  </div>
</li>
<li id="1726052" class="post-row js-find-txt" courseid="54" noteId="1726052" authorid="5185811">
  <div class="media">
    <a href="/u/5185811/courses" target="_blank"><img src="picture/58ef34c70001284101000100-40-40.jpg" width="40" height="40"></a>
  </div>
  <div class="bd">
    <div class="tit">
      <a href="/u/5185811/courses" target="_blank">qq_sun_0126_0</a>
    </div>
    <div class="js-notelist-content notelist-content mynote">
      <pre class="autowrap">PHP调试：&lt;br&gt;
《1》当前页面首次调试，需要进行 调试 配置；选中 网页，点击右键，选择“Debug As”-“Debug Configurations...”-“PHP CLI Application”-“index.php”（PHP Script页面 默认设置，不需要修改），点击“Debug”调试即可；&lt;br&gt;
《2》当前页面再次调试，可以直接运行；选中 网页，点击右键，选择“Debug As”-“1 PHP CLI 
调试快捷键：
F5:单步调试进入函数内部（单步进入）
F6:单步调试不进入函数内部（跳过）
F7:由函数内部返回到调用处（跳</pre>
      <div class="notelist-content-more">
        <a href="javascript:;" class="js-toggle-content">[ 查看全文 ]</a>
      </div>
    </div>
    <div class="clearfix">
      <input class="moco-btn moco-btn-green sava_btn" type="button" value="保存">
    </div>
            <div class="footer clearfix">
      <span title="18小时前" class="l timeago">时间：18小时前</span>
      <a href="/video/2196" class="from l">源自：7-11 代码调试功能</a>
      <div class="actions r">
        <textarea style="display:none;">PHP调试：&lt;br&gt;
《1》当前页面首次调试，需要进行 调试 配置；选中 网页，点击右键，选择“Debug As”-“Debug Configurations...”-“PHP CLI Application”-“index.php”（PHP Script页面 默认设置，不需要修改），点击“Debug”调试即可；&lt;br&gt;
《2》当前页面再次调试，可以直接运行；选中 网页，点击右键，选择“Debug As”-“1 PHP CLI 
调试快捷键：
F5:单步调试进入函数内部（单步进入）
F6:单步调试不进入函数内部（跳过）
F7:由函数内部返回到调用处（跳</textarea>
        <a title="采集" href="javascript:;" class="Jcollect post-action "  data-mid="2196|5185811">
          <i>采集</i>
          <em>0</em>
        </a>
        <a title="赞" href="javascript:;" class="Jpraise post-action "  data-mid="2196">
          <span class="icon-thumb-revert"></span>
          <em>0</em>
        </a> 
      </div>
    </div>
  </div>
</li>
<li id="1726007" class="post-row js-find-txt" courseid="54" noteId="1726007" authorid="5185811">
  <div class="media">
    <a href="/u/5185811/courses" target="_blank"><img src="picture/58ef34c70001284101000100-40-40.jpg" width="40" height="40"></a>
  </div>
  <div class="bd">
    <div class="tit">
      <a href="/u/5185811/courses" target="_blank">qq_sun_0126_0</a>
    </div>
    <div class="js-notelist-content notelist-content mynote">
      <pre class="autowrap">关闭窗口  ctrl+W</pre>
      <div class="notelist-content-more">
        <a href="javascript:;" class="js-toggle-content">[ 查看全文 ]</a>
      </div>
    </div>
    <div class="clearfix">
      <input class="moco-btn moco-btn-green sava_btn" type="button" value="保存">
    </div>
            <div class="footer clearfix">
      <span title="19小时前" class="l timeago">时间：19小时前</span>
      <a href="/video/2192" class="from l">源自：7-7 Zend Studio-代码格式化</a>
      <div class="actions r">
        <textarea style="display:none;">关闭窗口  ctrl+W</textarea>
        <a title="采集" href="javascript:;" class="Jcollect post-action "  data-mid="2192|5185811">
          <i>采集</i>
          <em>0</em>
        </a>
        <a title="赞" href="javascript:;" class="Jpraise post-action "  data-mid="2192">
          <span class="icon-thumb-revert"></span>
          <em>0</em>
        </a> 
      </div>
    </div>
  </div>
</li>
<li id="1726002" class="post-row js-find-txt" courseid="54" noteId="1726002" authorid="5185811">
  <div class="media">
    <a href="/u/5185811/courses" target="_blank"><img src="picture/58ef34c70001284101000100-40-40.jpg" width="40" height="40"></a>
  </div>
  <div class="bd">
    <div class="tit">
      <a href="/u/5185811/courses" target="_blank">qq_sun_0126_0</a>
    </div>
    <div class="js-notelist-content notelist-content mynote">
      <pre class="autowrap">代码格式化   ctrl+shift+f</pre>
      <div class="notelist-content-more">
        <a href="javascript:;" class="js-toggle-content">[ 查看全文 ]</a>
      </div>
    </div>
    <div class="clearfix">
      <input class="moco-btn moco-btn-green sava_btn" type="button" value="保存">
    </div>
            <div class="footer clearfix">
      <span title="19小时前" class="l timeago">时间：19小时前</span>
      <a href="/video/2192" class="from l">源自：7-7 Zend Studio-代码格式化</a>
      <div class="actions r">
        <textarea style="display:none;">代码格式化   ctrl+shift+f</textarea>
        <a title="采集" href="javascript:;" class="Jcollect post-action "  data-mid="2192|5185811">
          <i>采集</i>
          <em>0</em>
        </a>
        <a title="赞" href="javascript:;" class="Jpraise post-action "  data-mid="2192">
          <span class="icon-thumb-revert"></span>
          <em>0</em>
        </a> 
      </div>
    </div>
  </div>
</li>
<li id="1725998" class="post-row js-find-txt" courseid="54" noteId="1725998" authorid="5313600">
  <div class="media">
    <a href="/u/5313600/courses" target="_blank"><img src="picture/5918024e00017ae001000100-40-40.jpg" width="40" height="40"></a>
  </div>
  <div class="bd">
    <div class="tit">
      <a href="/u/5313600/courses" target="_blank">qq_amd_0</a>
    </div>
    <div class="js-notelist-content notelist-content mynote">
      <pre class="autowrap">什么事变量</pre>
      <div class="notelist-content-more">
        <a href="javascript:;" class="js-toggle-content">[ 查看全文 ]</a>
      </div>
    </div>
    <div class="clearfix">
      <input class="moco-btn moco-btn-green sava_btn" type="button" value="保存">
    </div>
            <div class="footer clearfix">
      <span title="19小时前" class="l timeago">时间：19小时前</span>
      <a href="/code/756" class="from l">源自：3-1 PHP-什么是变量</a>
      <div class="actions r">
        <textarea style="display:none;">什么事变量</textarea>
        <a title="采集" href="javascript:;" class="Jcollect post-action "  data-mid="756|5313600">
          <i>采集</i>
          <em>0</em>
        </a>
        <a title="赞" href="javascript:;" class="Jpraise post-action "  data-mid="756">
          <span class="icon-thumb-revert"></span>
          <em>0</em>
        </a> 
      </div>
    </div>
  </div>
</li>
<li id="1725992" class="post-row js-find-txt" courseid="54" noteId="1725992" authorid="5185811">
  <div class="media">
    <a href="/u/5185811/courses" target="_blank"><img src="picture/58ef34c70001284101000100-40-40.jpg" width="40" height="40"></a>
  </div>
  <div class="bd">
    <div class="tit">
      <a href="/u/5185811/courses" target="_blank">qq_sun_0126_0</a>
    </div>
    <div class="js-notelist-content notelist-content mynote">
      <pre class="autowrap">全文检索 ctrl+h</pre>
      <div class="notelist-content-more">
        <a href="javascript:;" class="js-toggle-content">[ 查看全文 ]</a>
      </div>
    </div>
    <div class="clearfix">
      <input class="moco-btn moco-btn-green sava_btn" type="button" value="保存">
    </div>
            <div class="footer clearfix">
      <span title="19小时前" class="l timeago">时间：19小时前</span>
      <a href="/video/2191" class="from l">源自：7-6 Zend Studio-全文检索</a>
      <div class="actions r">
        <textarea style="display:none;">全文检索 ctrl+h</textarea>
        <a title="采集" href="javascript:;" class="Jcollect post-action "  data-mid="2191|5185811">
          <i>采集</i>
          <em>0</em>
        </a>
        <a title="赞" href="javascript:;" class="Jpraise post-action "  data-mid="2191">
          <span class="icon-thumb-revert"></span>
          <em>0</em>
        </a> 
      </div>
    </div>
  </div>
</li>
<li id="1725986" class="post-row js-find-txt" courseid="54" noteId="1725986" authorid="4311591">
  <div class="media">
    <a href="/u/4311591/courses" target="_blank"><img src="picture/581491ca000194ae01000100-40-40.jpg" width="40" height="40"></a>
  </div>
  <div class="bd">
    <div class="tit">
      <a href="/u/4311591/courses" target="_blank">奥义_千年杀4311591</a>
    </div>
    <div class="js-notelist-content notelist-content mynote">
      <pre class="autowrap">使用 memory_get_usage()来获取各个字符类型消耗的内存空间</pre>
      <div class="notelist-content-more">
        <a href="javascript:;" class="js-toggle-content">[ 查看全文 ]</a>
      </div>
    </div>
    <div class="clearfix">
      <input class="moco-btn moco-btn-green sava_btn" type="button" value="保存">
    </div>
            <div class="footer clearfix">
      <span title="19小时前" class="l timeago">时间：19小时前</span>
      <a href="/code/743" class="from l">源自：3-4 PHP-什么是变量的数据类型</a>
      <div class="actions r">
        <textarea style="display:none;">使用 memory_get_usage()来获取各个字符类型消耗的内存空间</textarea>
        <a title="采集" href="javascript:;" class="Jcollect post-action "  data-mid="743|4311591">
          <i>采集</i>
          <em>0</em>
        </a>
        <a title="赞" href="javascript:;" class="Jpraise post-action "  data-mid="743">
          <span class="icon-thumb-revert"></span>
          <em>0</em>
        </a> 
      </div>
    </div>
  </div>
</li>
<li id="1725985" class="post-row js-find-txt" courseid="54" noteId="1725985" authorid="5185811">
  <div class="media">
    <a href="/u/5185811/courses" target="_blank"><img src="picture/58ef34c70001284101000100-40-40.jpg" width="40" height="40"></a>
  </div>
  <div class="bd">
    <div class="tit">
      <a href="/u/5185811/courses" target="_blank">qq_sun_0126_0</a>
    </div>
    <div class="js-notelist-content notelist-content mynote">
      <pre class="autowrap">调出查找面板 ctrl+f</pre>
      <div class="notelist-content-more">
        <a href="javascript:;" class="js-toggle-content">[ 查看全文 ]</a>
      </div>
    </div>
    <div class="clearfix">
      <input class="moco-btn moco-btn-green sava_btn" type="button" value="保存">
    </div>
            <div class="footer clearfix">
      <span title="19小时前" class="l timeago">时间：19小时前</span>
      <a href="/video/2190" class="from l">源自：7-5 Zend Studio-搜索和替换</a>
      <div class="actions r">
        <textarea style="display:none;">调出查找面板 ctrl+f</textarea>
        <a title="采集" href="javascript:;" class="Jcollect post-action "  data-mid="2190|5185811">
          <i>采集</i>
          <em>0</em>
        </a>
        <a title="赞" href="javascript:;" class="Jpraise post-action "  data-mid="2190">
          <span class="icon-thumb-revert"></span>
          <em>0</em>
        </a> 
      </div>
    </div>
  </div>
</li>
<li id="1725980" class="post-row js-find-txt" courseid="54" noteId="1725980" authorid="5185811">
  <div class="media">
    <a href="/u/5185811/courses" target="_blank"><img src="picture/58ef34c70001284101000100-40-40.jpg" width="40" height="40"></a>
  </div>
  <div class="bd">
    <div class="tit">
      <a href="/u/5185811/courses" target="_blank">qq_sun_0126_0</a>
    </div>
    <div class="js-notelist-content notelist-content mynote">
      <pre class="autowrap">跳转到当前行的末尾  end</pre>
      <div class="notelist-content-more">
        <a href="javascript:;" class="js-toggle-content">[ 查看全文 ]</a>
      </div>
    </div>
    <div class="clearfix">
      <input class="moco-btn moco-btn-green sava_btn" type="button" value="保存">
    </div>
            <div class="footer clearfix">
      <span title="19小时前" class="l timeago">时间：19小时前</span>
      <a href="/video/2189" class="from l">源自：7-4 Zend Studio-代码提示助手</a>
      <div class="actions r">
        <textarea style="display:none;">跳转到当前行的末尾  end</textarea>
        <a title="采集" href="javascript:;" class="Jcollect post-action "  data-mid="2189|5185811">
          <i>采集</i>
          <em>0</em>
        </a>
        <a title="赞" href="javascript:;" class="Jpraise post-action "  data-mid="2189">
          <span class="icon-thumb-revert"></span>
          <em>0</em>
        </a> 
      </div>
    </div>
  </div>
</li>
<li id="1725972" class="post-row js-find-txt" courseid="54" noteId="1725972" authorid="5185811">
  <div class="media">
    <a href="/u/5185811/courses" target="_blank"><img src="picture/58ef34c70001284101000100-40-40.jpg" width="40" height="40"></a>
  </div>
  <div class="bd">
    <div class="tit">
      <a href="/u/5185811/courses" target="_blank">qq_sun_0126_0</a>
    </div>
    <div class="js-notelist-content notelist-content mynote">
      <pre class="autowrap">提示助手 alt+/</pre>
      <div class="notelist-content-more">
        <a href="javascript:;" class="js-toggle-content">[ 查看全文 ]</a>
      </div>
    </div>
    <div class="clearfix">
      <input class="moco-btn moco-btn-green sava_btn" type="button" value="保存">
    </div>
            <div class="footer clearfix">
      <span title="19小时前" class="l timeago">时间：19小时前</span>
      <a href="/video/2189" class="from l">源自：7-4 Zend Studio-代码提示助手</a>
      <div class="actions r">
        <textarea style="display:none;">提示助手 alt+/</textarea>
        <a title="采集" href="javascript:;" class="Jcollect post-action "  data-mid="2189|5185811">
          <i>采集</i>
          <em>0</em>
        </a>
        <a title="赞" href="javascript:;" class="Jpraise post-action "  data-mid="2189">
          <span class="icon-thumb-revert"></span>
          <em>0</em>
        </a> 
      </div>
    </div>
  </div>
</li>
<li id="1725926" class="post-row js-find-txt" courseid="54" noteId="1725926" authorid="5315444">
  <div class="media">
    <a href="/u/5315444/courses" target="_blank"><img src="picture/59186f790001e41501000100-40-40.jpg" width="40" height="40"></a>
  </div>
  <div class="bd">
    <div class="tit">
      <a href="/u/5315444/courses" target="_blank">qq_苏藤想变得更好_0</a>
    </div>
    <div class="js-notelist-content notelist-content mynote">
      <pre class="autowrap">十进制数前面不用加
八进制前面要加0
十六进制前面加0x</pre>
      <div class="notelist-content-more">
        <a href="javascript:;" class="js-toggle-content">[ 查看全文 ]</a>
      </div>
    </div>
    <div class="clearfix">
      <input class="moco-btn moco-btn-green sava_btn" type="button" value="保存">
    </div>
            <div class="footer clearfix">
      <span title="19小时前" class="l timeago">时间：19小时前</span>
      <a href="/code/746" class="from l">源自：3-7 PHP标量类型—整型</a>
      <div class="actions r">
        <textarea style="display:none;">十进制数前面不用加
八进制前面要加0
十六进制前面加0x</textarea>
        <a title="采集" href="javascript:;" class="Jcollect post-action "  data-mid="746|5315444">
          <i>采集</i>
          <em>0</em>
        </a>
        <a title="赞" href="javascript:;" class="Jpraise post-action "  data-mid="746">
          <span class="icon-thumb-revert"></span>
          <em>0</em>
        </a> 
      </div>
    </div>
  </div>
</li>
<li id="1725917" class="post-row js-find-txt" courseid="54" noteId="1725917" authorid="5207265">
  <div class="media">
    <a href="/u/5207265/courses" target="_blank"><img src="picture/54584cd10001404b02200220-40-40.jpg" width="40" height="40"></a>
  </div>
  <div class="bd">
    <div class="tit">
      <a href="/u/5207265/courses" target="_blank">慕设计0447808</a>
    </div>
    <div class="js-notelist-content notelist-content mynote">
      <pre class="autowrap">switch(参数){
 循环1 case 1；
条件
break；退出本次进入下一次
default；退出本地查询
}</pre>
      <div class="notelist-content-more">
        <a href="javascript:;" class="js-toggle-content">[ 查看全文 ]</a>
      </div>
    </div>
    <div class="clearfix">
      <input class="moco-btn moco-btn-green sava_btn" type="button" value="保存">
    </div>
            <div class="footer clearfix">
      <span title="19小时前" class="l timeago">时间：19小时前</span>
      <a href="/code/963" class="from l">源自：6-6 PHP条件结构之switch…case…中的break</a>
      <div class="actions r">
        <textarea style="display:none;">switch(参数){
 循环1 case 1；
条件
break；退出本次进入下一次
default；退出本地查询
}</textarea>
        <a title="采集" href="javascript:;" class="Jcollect post-action "  data-mid="963|5207265">
          <i>采集</i>
          <em>0</em>
        </a>
        <a title="赞" href="javascript:;" class="Jpraise post-action "  data-mid="963">
          <span class="icon-thumb-revert"></span>
          <em>0</em>
        </a> 
      </div>
    </div>
  </div>
</li>
<li id="1725892" class="post-row js-find-txt" courseid="54" noteId="1725892" authorid="5315444">
  <div class="media">
    <a href="/u/5315444/courses" target="_blank"><img src="picture/59186f790001e41501000100-40-40.jpg" width="40" height="40"></a>
  </div>
  <div class="bd">
    <div class="tit">
      <a href="/u/5315444/courses" target="_blank">qq_苏藤想变得更好_0</a>
    </div>
    <div class="js-notelist-content notelist-content mynote">
      <pre class="autowrap">变量名除了需要“$”进行标识外，还有一些规则需要遵守。就像拿到驾驶证以后，还得遵守交通规则。变量名的命名规则主要有三条：
1、变量名必须以字母或下划线 “_”开头，如”$_name”,”$name” ,”$name2”等，但是”$9name”是不对的。
2、变量名只能由字母、数字、以及“_”组成，还能包含汉字。如”$_qq”,”$qq308” ,”$my_apple”，“比如&quot;$name我等”，但是”$name*”是不对的。
3、变量名不允许包含空格。当变量名由多个单词组成，建议使用“_”进行分隔（比如 $my_apple），俗称下划线法，或者以大写字母开头比如 $myApple，俗称骆驼式命名法（也称驼峰命名法）。
特别需要注意的是，在PHP中变量名是区分大小写的，如“$my_book”与“$my_Book”代表两个不同的变量。</pre>
      <div class="notelist-content-more">
        <a href="javascript:;" class="js-toggle-content">[ 查看全文 ]</a>
      </div>
    </div>
    <div class="clearfix">
      <input class="moco-btn moco-btn-green sava_btn" type="button" value="保存">
    </div>
            <div class="footer clearfix">
      <span title="20小时前" class="l timeago">时间：20小时前</span>
      <a href="/code/758" class="from l">源自：3-3 PHP-变量名的命名规则</a>
      <div class="actions r">
        <textarea style="display:none;">变量名除了需要“$”进行标识外，还有一些规则需要遵守。就像拿到驾驶证以后，还得遵守交通规则。变量名的命名规则主要有三条：
1、变量名必须以字母或下划线 “_”开头，如”$_name”,”$name” ,”$name2”等，但是”$9name”是不对的。
2、变量名只能由字母、数字、以及“_”组成，还能包含汉字。如”$_qq”,”$qq308” ,”$my_apple”，“比如&quot;$name我等”，但是”$name*”是不对的。
3、变量名不允许包含空格。当变量名由多个单词组成，建议使用“_”进行分隔（比如 $my_apple），俗称下划线法，或者以大写字母开头比如 $myApple，俗称骆驼式命名法（也称驼峰命名法）。
特别需要注意的是，在PHP中变量名是区分大小写的，如“$my_book”与“$my_Book”代表两个不同的变量。</textarea>
        <a title="采集" href="javascript:;" class="Jcollect post-action "  data-mid="758|5315444">
          <i>采集</i>
          <em>0</em>
        </a>
        <a title="赞" href="javascript:;" class="Jpraise post-action "  data-mid="758">
          <span class="icon-thumb-revert"></span>
          <em>0</em>
        </a> 
      </div>
    </div>
  </div>
</li>

</ul>
<div class="page"><span class="disabled_page">首页</span><span class="disabled_page">上一页</span><a href="javascript:void(0)" class="active text-page-tag">1</a><a class="text-page-tag" href="/course/note/id/54?sort=last&page=2">2</a><a class="text-page-tag" href="/course/note/id/54?sort=last&page=3">3</a><a class="text-page-tag" href="/course/note/id/54?sort=last&page=4">4</a><a class="text-page-tag" href="/course/note/id/54?sort=last&page=5">5</a><a class="text-page-tag" href="/course/note/id/54?sort=last&page=6">6</a><a class="text-page-tag" href="/course/note/id/54?sort=last&page=7">7</a><a href="/course/note/id/54?sort=last&page=2">下一页</a><a href="/course/note/id/54?sort=last&page=2259">尾页</a></div>
</div>

        </div>
        <div class="aside r">
            <div class="bd">
    
        
        <div class="box mb40 js-usercard-box">
        <h4>讲师提示</h4>
                        <div class="teacher-info">
            <a href="/u/106511/courses?sort=publish" target="_blank" >
                <img data-userid="106511" class="js-usercard-dialog" src="picture/533a1c58000138bd02610245-80-80.jpg" width="80" height="80">
            </a>
            <span class="tit">
                <a href="/u/106511/courses?sort=publish" target="_blank">Kings</a><i class="icon-imooc"></i>
            </span>
            <span class="job"></span>
        </div>
                <div class="teacher-info">
            <a href="/u/193479/courses?sort=publish" target="_blank" >
                <img data-userid="193479" class="js-usercard-dialog" src="picture/53e73d3b00011abe04550504-80-80.jpg" width="80" height="80">
            </a>
            <span class="tit">
                <a href="/u/193479/courses?sort=publish" target="_blank">BobWang</a><i class="icon-imooc"></i>
            </span>
            <span class="job">PHP开发工程师</span>
        </div>
                                <div class="course-info-tip">
                        <dl class="first">
                <dt>课程须知</dt>
                <dd class="autowrap">没有任何WEB经验的WEB应用程序开发者及对WEB前端技术兴趣的用户。（即使你是完全的新手）</dd>
            </dl>
                                    <dl>
                <dt>老师告诉你能学到什么？</dt>
                <dd class="autowrap">1、了解PHP中的变量、变量的类型、常量等概念 2、认识PHP中的运算符，掌握PHP中顺序结构、条件结构、循环结构语句。</dd>
            </dl>
                    </div>
            </div>
    
    <div class="js-recom-box">
	<!-- <div class="box mb40 all-attention-box">
		<h4>大家都关注</h4>
		<div class="js-all-attention all-attention">
			<a href="" target="_blank" data-id="1" class="">aa</a>
			<a href="" target="_blank" data-id="2" class="">biubiu~</a>
			<a href="" target="_blank" data-id="3" class="">一个前端开发的修养</a>
			<a href="" target="_blank" data-id="4" class="">呵呵</a>
			<a href="" target="_blank" data-id="5" class="">维萨只有前端有修养</a>
			<a href="" target="_blank" data-id="6" class="">别说笑了</a>
			<a href="" target="_blank" data-id="7" class="">修养是什么</a>
			<a href="" target="_blank" data-id="8" class="">能吃么</a>
		</div>
	</div> -->
	<!-- <div class="box mb40 recom-course-list-box">
		<h4>推荐课程</h4>                   
		<ul class="js-recom-course recom-course-list clearfix">
			<li class="clearfix">                    
				<a href="http://www.imooc.com/learn/327" class="clearfix" target="_blank">
					<div class="l course-img" style="background-image: url(images/cover015_s.jpg);">
						<div class="cart-color purple"></div>
					</div>
					<div class="l content-box">                            
						<p class="smalle-title">测试克隆慕课网</p>                            
						<p class="content-text" title="asfsafsafsafsadfsafsad">asfsafsafsafsadfsafsad</p>                            
						<div class="clearfix learn-detail">                                
							初级<span>·</span>138人在学                            
						</div>                        
					</div>                    
				</a>                
			</li>
			<li class="clearfix">                    
				<a href="http://www.imooc.com/learn/327" class="clearfix" target="_blank">
					<div class="l course-img" style="background-image: url(images/cover015_s.jpg);">
						<div class="cart-color purple"></div>
					</div>
					<div class="l content-box">                            
						<p class="smalle-title">测试克隆慕课网</p>                            
						<p class="content-text" title="asfsafsafsafsadfsafsad">asfsafsafsafsadfsafsad</p>                            
						<div class="clearfix learn-detail">                                
							初级<span>·</span>138人在学                            
						</div>                        
					</div>                    
				</a>                
			</li>
			<li class="clearfix">                    
				<a href="http://www.imooc.com/learn/327" class="clearfix" target="_blank">
					<div class="l course-img" style="background-image: url(images/cover015_s.jpg);">
						<div class="cart-color purple"></div>
					</div>
					<div class="l content-box">                            
						<p class="smalle-title">测试克隆慕课网</p>                            
						<p class="content-text" title="asfsafsafsafsadfsafsad">asfsafsafsafsadfsafsad</p>                            
						<div class="clearfix learn-detail">                                
							初级<span>·</span>138人在学                            
						</div>                        
					</div>                    
				</a>                
			</li>
		</ul>  
	</div> -->
</div>

</div>        </div>
    </div>
    <div class="clear"></div>

</div>

</div>

<div id="footer" >
    <div class="waper">
        <div class="footerwaper clearfix">
            <div class="followus r">
                <a class="followus-weixin" href="javascript:;"  target="_blank" title="微信">
                    <div class="flw-weixin-box"></div>
                </a>
                <a class="followus-weibo" href="http://weibo.com/u/3306361973"  target="_blank" title="新浪微博"></a>
                <a class="followus-qzone" href="http://user.qzone.qq.com/1059809142/" target="_blank" title="QQ空间"></a>
            </div>
            <div class="footer_intro l">
                <div class="footer_link">
                    <ul>
                        <li><a href="http://www.imooc.com/" target="_blank">网站首页</a></li>
                        <li><a href="/about/cooperate" target="_blank" title="企业合作">企业合作</a></li>
                        <li><a href="/about/job" target="_blank">人才招聘</a></li>
                        <li> <a href="/about/contact" target="_blank">联系我们</a></li>
                        <li> <a href="/about/recruit" target="_blank">讲师招募</a></li>
                        <li> <a href="/about/faq" target="_blank">常见问题</a></li>
                        <li> <a href="/user/feedback" target="_blank">意见反馈</a></li>
                        <li><a href="http://daxue.imooc.com/" target="_blank">慕课大学</a></li>
                        <li> <a href="/about/friendly" target="_blank">友情链接</a></li>
                       <!--  <li><a href="/corp/index" target="_blank">合作专区</a></li>
                        <li><a href="/about/us" target="_blank">关于我们</a></li> -->
                    </ul>
                </div>
                <p>Copyright © 2017 imooc.com All Rights Reserved | 京ICP备 13046642号-2</p>
            </div>
        </div>
    </div>
</div>


<div id="J_GotoTop" class="elevator">

    <a href="/user/feedback" class="elevator-msg" target="_blank">
        <i class="icon-feedback"></i>
        <span class="">意见反馈</span>
    </a>
    <a href="/about/faq" class="elevator-faq" target="_blank">
        <i class="icon-ques"></i>
        <span class="">常见问题</span>
    </a>
    <a href="http://www.imooc.com/mobile/app" target="_blank" class="elevator-app" >
        <i class="icon-appdownload"></i>
        <span class="">APP下载</span>
        <div class="elevator-app-box"></div>
    </a>
    <a href="javascript:void(0)" class="elevator-weixin no-goto" id="js-elevator-weixin" >
        <i class="icon-wxgzh"></i>
        <span class="">官方微信</span>
        <div class="elevator-weixin-box"></div>
    </a>
    <a href="javascript:void(0)" class="elevator-top no-goto" style="display:none" id="backTop">
        <i class="icon-up2"></i>
        <span class="">返回顶部</span>
    </a>
</div>



<!--script-->
<script src="js/ssologin_1.js"></script>
<script type="text/javascript" src="js/sea_1.js"></script>
<script type="text/javascript" src="js/sea_config_1.js"></script>
<script type="text/javascript">seajs.use("/static/page/"+OP_CONFIG.module+"/"+OP_CONFIG.page);</script>

 

<script type="text/javascript">
  (function(){
    var imgPic = GC.course.pic || 'http://img.mukewang.com/static/img/common/logo.png',
        text = '我正在参加@慕课网  的一门课程【' + GC.course.name + '】，很不错哦！快来一起学习吧！', //节名称
        url = 'http://www.imooc.com' + window.location.pathname;

    window._bd_share_config = {
        "common": {
            "bdUrl": url,
            "bdSnsKey": {
              'tsina':'2254855082'
            },
            "bdText": text,
            "bdMini": "2",
            "bdMiniList": false,
            "bdPic": imgPic,
            "bdStyle": "0",
            "bdSize": "16"
        },
        "share": {}
    };
    setTimeout(function(){
            with(document) 0[(getElementsByTagName('head')[0] || body).appendChild(createElement('script')).src = 'http://bdimg.share.baidu.com/static/api/js/share.js?v=89860593.js?cdnversion=' + ~(-new Date() / 36e5)];
        },1000)

  })();
</script>
<div class="mask"></div>


<div style="display: none">
<script type="text/javascript">
var _bdhmProtocol = (("https:" == document.location.protocol) ? " https://" : " http://");
document.write(unescape("%3Cscript src='" + _bdhmProtocol + "hm.baidu.com/h.js%3Ff0cfcccd7b1393990c78efdeebff3968' type='text/javascript'%3E%3C/script%3E"));
(function (d) {
window.bd_cpro_rtid="rHT4P1c";
var s = d.createElement("script");s.type = "text/javascript";s.async = true;s.src = location.protocol + "//cpro.baidu.com/cpro/ui/rt.js";
var s0 = d.getElementsByTagName("script")[0];s0.parentNode.insertBefore(s, s0);
})(document);
</script>
<script>
(function(){
    var bp = document.createElement('script');
    bp.src = '//push.zhanzhang.baidu.com/push.js';
    var s = document.getElementsByTagName("script")[0];
    s.parentNode.insertBefore(bp, s);
})();
</script>
</div>
</body>
</html>
